package kr.jobtc.phonebook;

public class Data {
	String name;
	String phone;
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	
	public String[] toArray(){
		String[] temp = new String[2];
		temp[0] = new String(name);
		temp[1] = new String(phone);
		
		return temp;
	}
	
}
